package com.jplus.controller;

import com.jplus.VO.ResultVO;
import com.jplus.entity.UserInfo;
import com.jplus.service.UserInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UserInfoController {

    @Autowired
    private UserInfoService userInfoService;

    @RequestMapping(value = "/save/user/info", method = RequestMethod.POST)
    public ResultVO saveUserInfo(UserInfo userInfo) {
        return userInfoService.saveOneUserInfo(userInfo);
    }
}
